﻿
namespace WorldBankBBS.Translators
{
    public interface ITranslator
    {
        int ResourceToBytes(byte[] buffer, string resourceName);
        int ResourceToBytes(byte[] buffer, int offset, int length, string resourceName);

        int StringToBytes(byte[] buffer, string text);
        int StringToBytes(byte[] buffer, int offset, int length, string text);

        int StringToBytes(byte[] buffer, string text, params object[] values);
        int StringToBytes(byte[] buffer, int offset, int length, string text, params object[] values);


        string FromBytes(byte[] buffer);
        string FromBytes(byte[] buffer, int offset, int length);
    }
}
